<?php

class ViewBase extends Smarty{
	private $config;
	
	public function __construct(){
		$viewConf = require_once APP_PATH . "app/Home/Config/view_config.php";
		$this->config = $viewConf;
		parent::__construct();
		
		$this->setTemplateDir($viewConf['smarty']['template']);
		$this->setCompileDir($viewConf['smarty']['compile']);
		$this->setConfigDir($viewConf['smarty']['config']);
		$this->setCacheDir($viewConf['smarty']['cache']);
		
		$this->caching = Smarty::CACHING_LIFETIME_CURRENT;
	}
}